﻿#ifndef IO
#define IO
#include<iostream>
#endif

#include"find"
#include"insert"
#include"show"
#include<stdio.h>



void clear()
{
  std::cout<<"屏幕即将清理...\n";
}

int main()
{
    int choose;


    while(1)
    {
    //菜单
    printf("选择你想进行的操作:\n");
    printf("1.查看单词与修改或删除\t2.插入新的单词\t3.查找单词\t4.清理当前界面\t5.退出\t");
    choose=0;
    scanf("%d",&choose);
    switch (choose) {
    case 1:
    show();//查看与修改或删除
    break;
    case 2:
    insert();//插入 
    break;
    case 3:
    find();//查找
    break;
    case 4:
    clear();//清屏
    break;
    case 5:
    goto out;
    break;
    default:
    printf("输入错误，请重新输入！\n");
    break;
    }
    }


    out:
    printf("欢迎下次使用，再见！");
    scanf("%d",&choose);
    return 0;
}
